﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QuickJob;
using QuickJob.forms;

using QuickJob.lib;


namespace QuickJob
{
    public partial class Form1 : Form
    {

        //窗口管理
        FormsArchitecture formsArchitecture;
        //配置文件
        static Config cfg = new Config();

        /// <summary>
        /// 关于
        /// </summary>
        About about ;//= new About();
        QuickDownPictures quickDownPictures; //= new QuickDownPictures();
        SetupDrop setupDrop;// = new SetupDrop(cfg);
        DropsBat dropsBat;// = new DropsBat();
        QuickDownPictureBat quickDownPictureBat;
        //////////////////////////////////////////////////////////////////////////

        public Form1()
        {
            InitializeComponent();

            //读取配置
            cfg.ReadConfig();

            formsArchitecture = new FormsArchitecture(this);

            //窗口初始化
            about = new About();
            quickDownPictures = new QuickDownPictures();
            setupDrop = new SetupDrop(cfg);
            dropsBat = new DropsBat(cfg);
            quickDownPictureBat = new QuickDownPictureBat();

            formsArchitecture.AddForm(quickDownPictures, "功能", "下图",false);
            formsArchitecture.AddForm(quickDownPictureBat, "功能", "批量下图", false);
            formsArchitecture.AddForm(setupDrop,"吊牌","制作吊牌",false);
            formsArchitecture.AddForm(dropsBat, "吊牌", "批量生成吊牌", false);
            formsArchitecture.AddForm(about, "关于", "关于",true);



        }




    }
}
